package com.zytech.zspider.task;

import com.zytech.zspider.core.TaskDefinition;
import com.zytech.zspider.core.TaskResult;

/**
 * @author siuming
 */
public interface TaskResultHandler {

    /**
     * @param executor
     * @param task
     * @param context
     * @param result
     * @return
     */
    TaskResult onResult(TaskExecutor executor,
                        TaskDefinition task,
                        TaskContext context,
                        TaskResult result);
}
